<?php
Class ErrorMessage
{
	const CODE_0 = 'No error.';
	const CODE_1 = 'This email is already in use';
	const CODE_2 = 'Register With Username Undefined variable.';
	const CODE_3 = 'Error username En & Number Only';
	const CODE_4 = 'Username Need more than 4 or more.';
	const CODE_5 = 'Password too short!';
	const CODE_6 = 'Password must include at least one number!';
	const CODE_7 = 'Password must include at least one letter!';
	const CODE_8 = 'Insert new account error';
	const CODE_9 = 'Insert account token error';
	const CODE_10 = 'Login With Username Undefined variable.';
	const CODE_11 = 'username or password error';
	const CODE_12 = 'Update Account Token Error';
	const CODE_13 = 'like id Undefined variable.';
	const CODE_14 = 'like id no data';
	const CODE_15 = 'Photo Group id Undefined variable';
	const CODE_16 = 'Photo Group id no data';
	const CODE_17 = 'Comment Group id Undefined variable.';
	const CODE_18 = 'Comment Group id no data';
	const CODE_19 = 'Get User id Undefined variable.';
	const CODE_20 = 'User id no data';
	const CODE_21 = 'facebook id Undefined variable';
	const CODE_22 = 'this User id no Facebook data';
	const CODE_23 = 'Get User token id Undefined variable.';
	const CODE_24 = 'this uid no token data';
	const CODE_25 = 'getUserAlbum Undefined variable';
	const CODE_26 = 'this album id no data';
	const CODE_27 = 'getSiteGallery Undefined variable';
	const CODE_28 = 'this SiteGallery no data';
	const CODE_29 = 'getSiteInfo Undefined variable.';
	const CODE_30 = 'this Site Info no data';
	const CODE_31 = 'Like id and uid Undefined variable.';
	const CODE_32 = 'This No User Database Server .';
	const CODE_33 = 'You have already been done';
	const CODE_34 = 'Sa	ve Like to Database Server Error.';
	const CODE_35 = 'No This Place Site Database Server .';
	const CODE_36 = 'Save addReviewSite to Database Server Error.';
	const CODE_37 = 'Update Review Site Error';
	const CODE_38 = 'unLike Undefined variable.';
	const CODE_39 = 'no Like id in Database Server.';
	const CODE_40 = 'Deleting Like id in Database Server Error.';
	const CODE_41 = 'usefulYes Undefined variable.';
	const CODE_42 = 'Update Review useful type Error';
	const CODE_43 = 'usefulNo Undefined variable.';
	const CODE_44 = 'insert useful no Site Error';
	const CODE_45 = 'usefulDel Undefined variable.';
	const CODE_46 = 'Deleting useful review Database Server Error.';
	const CODE_47 = 'getReview place_id Undefined variable.';
	const CODE_48 = 'AddTabSite Undefined variable.';
	const CODE_49 = 'uid no owner this place';
	const CODE_50 = 'Add Tab Site Save to database error';
	const CODE_51 = 'EditTabSite Undefined variable.';
	const CODE_52 = 'No Tab id in Database';
	const CODE_53 = 'Update Tab in Database Error';
	const CODE_54 = 'DelTabSite Undefined variable.';
	const CODE_55 = 'Del Tab Site Error';
	const CODE_56 = 'This username is already in use.';
	const CODE_57 = 'getTabSite Undefined variable.';
	const CODE_58 = 'place id no tab';
	const CODE_59 = 'getSocial Undefined variable.';
	const CODE_60 = 'Need variable sort.';
	const CODE_61 = 'Update review useful count Error';
	
	const CODE_1000 = 'User not have permission.';
	
	const CODE_1100 = 'Need property.';

	const CODE_1200 = 'Read from Database Error.';
	const CODE_1201 = 'Save to Database Error.';
	const CODE_1202 = 'Update to Database Error.';
	const CODE_1203 = 'Delete to Database Error.';
	
	const CODE_2000 = 'Report save Report Error.';
	const CODE_2001 = 'Report save ReportSite Error.';
	const CODE_2002 = 'Report save ReportSiteText Error.';
	const CODE_2003 = 'Dont have report type in system.';

	const CODE_9999 = '';
	
	public static function getMessage($code)
	{
		return constant(sprintf('%s::%s', __CLASS__, 'CODE_'.$code));
	}
}
